package com.example.lenovo.demo;

import android.content.Intent;
import android.os.Bundle;
import android.support.v7.app.AppCompatActivity;
import android.support.v7.widget.Toolbar;
import android.view.View;

public class DebarkActivity extends AppCompatActivity {

    private Toolbar toolbar;


    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_debark);
        toolbar = (Toolbar) findViewById(R.id.toolbar_debark);
        toolbar.setTitle("登录携程账号");
        setSupportActionBar(toolbar);
       toolbar.setNavigationIcon(R.mipmap.register_left);
       // getSupportActionBar().setDisplayHomeAsUpEnabled(true);
        toolbar.setNavigationOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View view) {
              finish();
            }
        });
    }

    public void click(View view){
        switch (view.getId()) {
            case R.id.tv_register:
              startActivity(new Intent(DebarkActivity.this,RegisterActivity.class));
                break;
        }
    }

}
